package com.huobi.db.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import com.huobi.db.bean.Account;

@Mapper
public interface AccountMapper {

	@Select("select * from ls_account where account_id = #{accountId} and type = #{type}")
	public Account getAccount(@Param("accountId") String accountId, @Param("type") String type);

	public void newAccount(Account account);

	@Select("select * from ls_account")
	public List<Account> selectAccount();

	
	@Select("select * from ls_account where type = #{type}")
	public Account selectAccountByType(String type);

	public void update(Account value);

}
